class Hero < ActiveRecord::Base
  belongs_to :user
  belongs_to :map
  
  validates_name :uniqueness => true
  validates_user_id :uniqueness => true, :message => 'already has a hero.'
  
  def to_s
    name
  end
end
